package com.zy.demo048084.controller;


import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping(value = "/test")
@Slf4j
@RefreshScope
public class TestController {

    @Value("${stefanie}")
    private String test;

    @GetMapping(value = "/test1")
    public void test1() {
        log.info("测试数据：{}", test);
    }
}
